<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>列表页</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/base.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/list.css">
	<script src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>
		<script src="__PUBLIC__/js/cart.js"></script>
		<script src="__PUBLIC__/js/list.js"></script>
	<script src="__PUBLIC__/js/index.js"></script>


	<style>
	.page{clear:both;}
	</style>
	<script type="text/javascript">
	// var hoverCart = "{|U:'Common/hoverCart'}";
</script>
</head>
<body>
	<include file="__PUBLIC__/header2" />


<!--面包屑导航开始-->
<div class="crumb">
	<ul>
	<li class="ico"></li>
	<foreach from='$crumb'  key='$k' value='$v'>
	  <li class="list"><span><a href="{|U:'Index/List/index',array('cid'=>$_GET['cid'])}">{$v.cname}</a></span></li>
	   <li class="arrow"></li>
	</foreach>
 
  
 
    <li class="search">
    	<form action="">
  	<input type="text" class="keywords" value="在结果中查找" />
   <input type="submit" value="" class="btn_search"/>
  </form>
    </li>
  </ul>
  <small class="count">共{$total}条</small>
	
</div>
<!--面包屑导航结束-->

<!--商品筛选开始-->
<div class="attr">

 <foreach from="$tempFinalAttr"  key="$k" value="$v">
       <?php 
					//赋值给临时变量为了不破坏$param
		  $temp = $param;
				//为了不限而准备的
				$temp[$k] = 0;
				 ?>

	<div class="guide_box">
		<div class="title"><span>{$v.name}</span></div>
		<div class="main">
			<ul>
				
                <li>
									<a href="{|U:'List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp))}" <if value="$param[$k] eq 0">class="cur"</if> >不限</a>
								</li>

				
				<foreach from="$v['value']" key="$kk" value="$vv">
					<?php  $temp[$k] = $vv['goods_att_id']; ?>
								<li >
									<a href="{|U:'List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp))}" <if value="$param[$k] eq $vv['goods_att_id']">class ="cur"</if> >{$vv.attr_value}</a>
								</li>
				</foreach>


			
			</ul>
			<!-- <div class="muti_choice">
				<a href="" class="more_choice">多选</a>
				<a href="" class="more_choice">更多</a>
			</div> -->
		</div>
		
	</div>
	</foreach>
	
</div>


<!--商品筛选结束-->

<!-- 列表部分结束 -->	
<div class="goods">
<!-- 列表左边开始 -->
<div class="goods_left">
	 <!-- 热卖推荐开始 -->
	 <div class="hot_goods">
<h2 class="title">热卖推荐</h2>
<div class="hot_list">
	<ul>
	<list from='$hot' name='$v' >
		<li>
			<a  class="thumb" href="{|U:'Index/Details/index',array('type_id'=>$v['type_id'],'cat_id'=>$_GET['cid'],'goods_id'=>$v['goods_id'])}"><img src="__ROOT__/{$v['goods_img']}" alt="" width="160" height="160" />
             <span class="ico">热卖</span>
			</a>
			<p class="price"><span class="red">¥{$v['shop_price']}</span>
            <del></del>
			</p>
			<p class="name"><a href="{|U:'Index/Details/index',array('type_id'=>$v['type_id'],'cat_id'=>$_GET['cid'],'goods_id'=>$v['goods_id'])}"><span class="free">[包邮]</span>
{$v['goods_name']} </a>
			</p>
			<p class="comment">
				<i></i>
				<a href="">5</a>
			</p>
		</li>
		</list>
	</ul>
	</div>
</div>
 <!-- 热卖推荐结束 -->
<!-- 一周销量排行榜 开始-->
<div class="rank">
	<h2 class="title">一周排行榜</h2>
	<div class="rank_list">
		<ul>
		<foreach from='$top' key='$k' value='$v' >
			<li>
			
				<a href="{|U:'Index/Details/index',array('type_id'=>$v['type_id'],'cat_id'=>$_GET['cid'],'goods_id'=>$v['goods_id'])}" class="small"><img src="__ROOT__/{$v['goods_img']}" alt="" width="70" height="70" />
              <sup class="num num{$k}"></sup>
				</a>
				<p class="price"><span class="red">¥{$v['shop_price']}</span>
				<p class="name">
					<a href="{|U:'Index/Details/index',array('type_id'=>$v['type_id'],'cat_id'=>$_GET['cid'],'goods_id'=>$v['goods_id'])}">{$v['goods_name']}
					</a>
				</p>
			</li>
			</foreach>
	
		</ul>
	</div>
</div>

<!-- 一周销量排行榜 结束-->


</div>
<!-- 列表左边结束 -->

<!-- 列表右边开始 -->
<div class="goods_right">
	<div class="search_select">
		<div class="sort_b">
			<a href="{|U:'List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp),'sort'=>0)}" class="cur zh">综合</a>
			<a href="{|U:'List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp),'sort'=>1)}">销量<i class="ico"></i></a>
			<a href="{|U:'List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp),'sort'=>2)}">新品<i class="ico"></i></a>
			<!-- <a href="{|U:'List/index',array('cid'=>$_GET['cid'],'sort'=>0)}">评论<i class="ico"></i></a> -->
			<a href="{|U:'List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp),'sort'=>3)}">价格<i class="ico"></i></a>
			
		</div>
	<!-- 	<div class="bw">
			<input type="text" class="ip1" value="¥" />
			−
			<input type="text" class="ip2" value="¥" />
		</div> -->
		<!-- <div class="more_b">
			<a href=""><i class="ico"></i>1号店自营</a>
			<a href=""><i class="ico"></i>商家包邮</a>
			<a href=""><i class="ico"></i>进口</a>
		</div> -->
		<!-- <div class="select_page">
			<div class="page_btn">
				<a href="" class="pre"></a>
				<a href="" class="next"></a>
			</div>
			<div class="page_num">
				<span>2</span>
				/{$total}
			</div>

		</div> -->
	</div>

	<!-- 商品列表开始 -->
  <div class="goods_list">
  	<ul>
  	<if value="$list">
     <list from="$list" name="$v">
  		<li>

  		
  			<a href="{|U:'Index/Details/index',array('type_id'=>$v['type_id'],'cat_id'=>$_GET['cid'],'goods_id'=>$v['goods_id'])}" class="pro"><img src="__ROOT__/{$v.goods_img}" alt="" width="200"  />
		

		
		<if value="$v['is_hot'] eq 1">
		<span class="ico ico1">热卖</span>
		</if>
		<if value="$v['is_new'] eq 1" >
		<span class="ico ico2">进口</span>
		</if>
		
		 <span class="ico "></span>
		
		
		
  			</a>
  			<div class="price">
  				<span class="red">¥{$v.shop_price}</span>
  				<i class="bao_ico"></i>
  			</div>
  			<p class="title">
  				<a href="" class="text">{$v.goods_name}</a>
  				<!-- <a href="" class="hide">
{$v.goods_brief}
</a> -->
  			</p>
  			<!-- <div class="item_cart">
  				<div class="num">
  					<input type="text" name="" id="" value="1" />
  					<span>
  					<a href="" class="add">+</a>
  					<a href="" class="minus ">-</a>
  					</span>
  				</div>
  				<div class="buy">
  					<a href="" class="buy_btn">加入购物车</a>
  				</div>
  				
  			</div>
  			<div class="comment">
  					<i></i>
  					<a href="">964</a>
  					<span><i></i>89%</span>
  				</div> -->

  		</li>
  		</list>
    <else />
 
   <p style="text-align:center;">亲，该下面没有商品哦！</p>

     </if>


  	</ul>

  	
  </div>

<div class="page">
  		{$page}
  	</div>
</div>
<!-- 列表右边结束 -->
</div>
<!-- 列表部分结束 -->


<div class="clear"></div>
<include file="__PUBLIC__/footer" />

</body>
</html>